package com.zhuoan.im.webapp.biz;

import com.zhuoan.im.webapp.dao.model.GroupMember;

import java.util.List;

/**
 * GroupMemberBiz
 *
 * @author weixiang.wu
 * @date 2018 -10-17 19:08
 */
public interface GroupMemberBiz {
    /**
     * 查询当前组包含的用户 ids
     *
     * @param userGroupsId the user groups id
     * @return the list
     */
    List<Long> queryInCurrentGroupUserIds(Long userGroupsId);

    /**
     * 新增组内人员
     *
     * @param groupMember the group member
     * @return the int
     */
    int addGroupMember(GroupMember groupMember);

    /**
     * 修改is_delete = 1
     *
     * @param groupId  the group id
     * @param targetId the target id
     * @return the int
     */
    int removeMember(String groupId, String targetId);
}
